package com.relytosoft.mizar.analyze.system.api.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author lj
 * @date 2022/5/25 16:50
 */
public class AyPlanTemplateDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    @ApiModelProperty(value = "主键", required = true)
    private Integer id;

    /**
     * 模板名称
     */
    @ApiModelProperty(value = "模板名称", required = true)
    @TableField("NAME")
    private String name;

    /**
     * 计划类型;0：周计划 1：日计划（周一到周日计划相同） 2：全天
     */
    @ApiModelProperty(value = "计划类型;0：周计划 1：日计划（周一到周日计划相同） 2：全天", required = true)
    @TableField("PLAN_TYPE")
    private Integer planType;

    /**
     * 计划信息条数;取值范围如下： 周计划时：1～7 日计划时：1 全天：0
     */
    @ApiModelProperty(value = "计划信息条数;取值范围如下： 周计划时：1～7 日计划时：1 全天：0")
    @TableField("PLAN_INFO_NUM")
    private Integer planInfoNum;

    /**
     * 计划信息列表;(json数据) 周计划时最多7个计划时间信息 日计划时最多1个计划时间信息 全程录时无计划时间信息
     */
    @ApiModelProperty(value = "计划信息列表;(json数据) 周计划时最多7个计划时间信息 日计划时最多1个计划时间信息 全程录时无计划时间信息")
    @TableField("PLAN_INFO_LIST")
    private String planInfoList;

    /**
     * 创建人ID
     */
    @ApiModelProperty(value = "创建人ID", required = true)
    private Integer createdId;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人", required = true)
    private String createdBy;

    /**
     * 更新人ID
     */
    @ApiModelProperty(value = "更新人ID", required = true)
    private Integer updatedId;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人", required = true)
    private String updatedBy;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPlanType() {
        return planType;
    }

    public void setPlanType(Integer planType) {
        this.planType = planType;
    }

    public Integer getPlanInfoNum() {
        return planInfoNum;
    }

    public void setPlanInfoNum(Integer planInfoNum) {
        this.planInfoNum = planInfoNum;
    }

    public String getPlanInfoList() {
        return planInfoList;
    }

    public void setPlanInfoList(String planInfoList) {
        this.planInfoList = planInfoList;
    }

    public Integer getCreatedId() {
        return createdId;
    }

    public void setCreatedId(Integer createdId) {
        this.createdId = createdId;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Integer getUpdatedId() {
        return updatedId;
    }

    public void setUpdatedId(Integer updatedId) {
        this.updatedId = updatedId;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    @Override
    public String toString() {
        return "AyPlanTemplateDto{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", planType=" + planType +
                ", planInfoNum=" + planInfoNum +
                ", planInfoList='" + planInfoList + '\'' +
                ", createdId=" + createdId +
                ", createdBy='" + createdBy + '\'' +
                ", updatedId=" + updatedId +
                ", updatedBy='" + updatedBy + '\'' +
                '}';
    }
}
